/**
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-02-16 10:12:53
 * @Description  : 权限接口路由
 */

const Router = require('koa-router')
const { verifyToken } = require('@/utils/jwt')
const permissionValidate = require('@/middlewares/validateMiddlewares/permissionValidate')
const permissionController = require('@/controller/permissionController')

const router = new Router()
/**
 * 获取权限列表
 */
router.get(
  '/list',
  verifyToken(),
  permissionValidate.listPermissionValidate,
  permissionController.listPermission
)

module.exports = router
